int* separateDigits(int* nums, int numsSize, int* returnSize) {
	int i = 0;
	int tmp = 0;
	int* ans = malloc(6 * 1000 * sizeof(int));
	int k = 0;
	for (i = 0; i < numsSize; i++) {
		int n = nums[i];
		int j = 0;
		while (n) {
			tmp = tmp * 10 + n % 10;
			n /= 10;
		}	
		while (tmp) {
			ans[k++] = tmp % 10;
			tmp /= 10;
		}
	}
	*returnSize = k;
	return ans;
}